﻿using S.Common.Enums.Archives;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S.Archives.Domain.S.ArchivesModel
{
    /// <summary>
    /// 流转表
    /// </summary>
    public class WanderModel
    {
        /// <summary>
        /// 流转表Id
        /// </summary>
        [Key]
        public int WanderId { get; set; }

        /// <summary>
        /// 可视耳号
        /// </summary>
        /// 
        [StringLength(16)]
        public string? EarTag { get; set; }
        /// <summary>
        /// 流转繁殖状态
        /// </summary>
        public WanderReproductiveStateEnum? WanderReproductiveState { get; set; }
        /// <summary>
        /// 流转繁殖状态名称
        /// </summary>

        public string? WanderReproductiveStateLabel { get { return WanderReproductiveState.ToString(); } }
        /// <summary>
        /// 内容
        /// </summary>
        /// 
        [StringLength(100)]
        public string? Content { get; set; }
        /// <summary>
        /// 流转日期
        /// </summary>
        public DateTime? WanderDate { get; set; }
        /// <summary>
        /// 流水号
        /// </summary>
        /// 
        [StringLength(20)]
        public string? SerialNumber { get; set; }
    }
}
